tmem: fix minor accounting error
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 16 Jun 2009 10:18:32 +0000 (11:18 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 16 Jun 2009 10:18:32 +0000 (11:18 +0100)
Reset a counter when all tmem pages are released.  This
only affects status reporting (as displayed by xm tmem-list
or the just patched xenballoon-monitor) but the incorrectly
reported result is misleading.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
xen/common/tmem_xen.c

index 6a0b14f456ecc30d7bc1cc630a93673fe25d2458..774bb7dc128fa48904dabfa0652dd4ea82d29dc8 100644 (file)
@@ -202,6 +202,7 @@ EXPORT void tmh_release_avail_pages_to_host(void)
     {
         scrub_list_splice(&tmh_page_list);
         INIT_PAGE_LIST_HEAD(&tmh_page_list);
+        tmh_page_list_pages = 0;
     }
     spin_unlock(&tmh_page_list_lock);
 }